<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">

    <rich:panel style="height:100%">
        <f:facet name="header">
        COMUNIDADES
        </f:facet>
		<h:form>
	        <rich:dataGrid value="#{perfilMBean.comunidades}" var="comunidade" columns="4" elements="8" width="100%" style="height:100%">
		            <rich:panel>
		                <h:panelGrid columns="1" >
	                    	<h:graphicImage value="#{comunidade.urlFoto}" width="65px" height="65px" /><br/>
	                    	<h:outputText value="#{comunidade.titulo}" />
		                </h:panelGrid>
		            </rich:panel>
	        </rich:dataGrid>
		</h:form>


    </rich:panel>

</html>